package org.dromara.business.domain.bo;

import org.dromara.business.domain.StakingProduct;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 质押产品业务对象 app_staking_products
 *
 * @author Eric
 * @date 2025-09-05
 */
@Data
@AutoMapper(target = StakingProduct.class, reverseConvertGenerate = false)
public class StakingProductBo {

    /**
     * 产品ID
     */
    private Long id;

    /**
     * 产品名称
     */
    @NotBlank(message = "产品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productName;

    /**
     * 产品代码
     */
    private String productCode;

    /**
     * 质押周期（天）
     */
    @NotNull(message = "质押周期（天）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer periodDays;

    /**
     * 日收益率（%）
     */
    @NotNull(message = "日收益率（%）不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal dailyRate;

    /**
     * 最小质押金额
     */
    @NotNull(message = "最小质押金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal minAmount;

    /**
     * 产品描述
     */
//    @NotBlank(message = "产品描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 状态：1-上架，0-下架
     */
//    @NotNull(message = "状态：1-上架，0-下架不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    private Integer sort;
}
